[XEN][POWERPC] oops on debug build break
authorJimi Xenidis <jimix@watson.ibm.com>
Mon, 2 Oct 2006 00:40:44 +0000 (20:40 -0400)
committerJimi Xenidis <jimix@watson.ibm.com>
Mon, 2 Oct 2006 00:40:44 +0000 (20:40 -0400)
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : w74%97%91o%9E%24%93%9B%F4%D9T%9B%A7%C6%7C%02%C7%3F

xen/arch/powerpc/papr/xlate.c

index d01bd12c26a93d18d4dfbb3e0abaec9f4e134947..bfc3af9031e571b3dedfc1d18053c1259ee76d4b 100644 (file)
@@ -378,7 +378,6 @@ static void h_protect(struct cpu_user_regs *regs)
 
 static void h_clear_ref(struct cpu_user_regs *regs)
 {
-    ulong flags = regs->gprs[4];
     ulong ptex = regs->gprs[5];
     struct vcpu *v = get_current();
     struct domain *d = v->domain;
@@ -387,13 +386,13 @@ static void h_clear_ref(struct cpu_user_regs *regs)
     union pte lpte;
 
     DBG_LOW("%s: flags: 0x%lx ptex: 0x%lx\n", __func__,
-            flags, ptex);
+            regs->gprs[4], ptex);
 
 #ifdef DEBUG
-    if (flags != 0) {
+    if (regs->gprs[4] != 0) {
         DBG("WARNING: %s: "
             "flags are undefined and should be 0: 0x%lx\n",
-            __func__, flags);
+            __func__, regs->gprs[4]);
     }
 #endif
 
@@ -421,7 +420,6 @@ static void h_clear_ref(struct cpu_user_regs *regs)
 
 static void h_clear_mod(struct cpu_user_regs *regs)
 {
-    ulong flags = regs->gprs[4];
     ulong ptex = regs->gprs[5];
     struct vcpu *v = get_current();
     struct domain *d = v->domain;
@@ -430,13 +428,13 @@ static void h_clear_mod(struct cpu_user_regs *regs)
     union pte lpte;
 
     DBG_LOW("%s: flags: 0x%lx ptex: 0x%lx\n", __func__,
-           flags, ptex);
+          regs->gprs[4], ptex);
 
 #ifdef DEBUG
-    if (flags != 0) {
+    if (regs->gprs[4] != 0) {
         DBG("WARNING: %s: "
             "flags are undefined and should be 0: 0x%lx\n",
-            __func__, flags);
+            __func__, regs->gprs[4]);
     }
 #endif